package org.mqlink4sap.connectors;

import java.util.Properties;

import org.mqlink4sap.exceptions.ConnectorException;
import org.mqlink4sap.exceptions.ConnectorInitializationException;
import org.mqlink4sap.globals.Message;

public interface IConnector {

	public enum Direction {
		Incoming, Outgoing
	}

	IConnector initialize(Direction d, Properties p)
			throws ConnectorInitializationException;

	String nextId() throws ConnectorException;

	Message get(String id) throws ConnectorException;

	boolean put(Message m) throws ConnectorException;

	void remove(String id) throws ConnectorException;

}
